package fun.boomcat.luckyhe.mirai.plugin;

import net.mamoe.mirai.console.extension.PluginComponentStorage;
import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescription;
import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescriptionBuilder;
import net.mamoe.mirai.event.GlobalEventChannel;
import org.jetbrains.annotations.NotNull;

public class MessageCommandListener extends net.mamoe.mirai.console.plugin.jvm.JavaPlugin{
    public static final MessageCommandListener INSTANCE = new MessageCommandListener();

    private MessageCommandListener() {
        super(new JvmPluginDescriptionBuilder(
                "luckyhe.messagecommandlistener",
                "1.0"
        ).build());
    }

    @Override
    public void onLoad(@NotNull PluginComponentStorage $this$onLoad) {

    }

    @Override
    public void onEnable() {
        GlobalEventChannel.INSTANCE.registerListenerHost(new MessageCommandListenerHost());
        getLogger().info("事件加载完成");
    }
}
